# Base Images
## 从基础镜像构建
FROM ubuntu:16.04
MAINTAINER https://gitee.com/OpenVidu_CN

# 设置系统编码支持中文
ENV LANG C.UTF-8

# 更新apt源
RUN  sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list

# Install Java, supervisor, netstat and curl
RUN apt-get clean && apt-get update && apt-get install -y \
  openjdk-8-jre \
  supervisor \
  curl \
&& rm -rf /var/lib/apt/lists/*

# Configure supervisor
RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Copy shixun server
COPY shixun.jar shixun.jar

EXPOSE 8899

# Exec supervisord
CMD ["/usr/bin/supervisord"]